export default class ScriptModel {
    get lastExecuteStatus(): boolean {
        return this._lastExecuteStatus;
    }

    set lastExecuteStatus(value: boolean) {
        this._lastExecuteStatus = value;
    }

    get lastExecuteTime(): Date {
        return this._lastExecuteTime;
    }

    set lastExecuteTime(value: Date) {
        this._lastExecuteTime = value;
    }

    get description(): string {
        return this._description;
    }

    set description(value: string) {
        this._description = value;
    }

    get content(): number {
        return this._content;
    }

    set content(value: number) {
        this._content = value;
    }

    get type(): string {
        return this._type;
    }

    set type(value: string) {
        this._type = value;
    }

    get name(): string {
        return this._name;
    }

    set name(value: string) {
        this._name = value;
    }

    get id(): number {
        return this._id;
    }

    set id(value: number) {
        this._id = value;
    }

    private _id: number;
    private _name: string;
    private _type: string;
    private _content: number;
    private _description: string;
    private _lastExecuteTime: Date;
    private _lastExecuteStatus: boolean;

    constructor(id: number,
                name: string,
                type: string,
                content: number,
                description: string,
                lastExecuteTime: Date,
                lastExecuteStatus: boolean) {
        this._id = id;
        this._name = name;
        this._type = type;
        this._content = content;
        this._description = description;
        this._lastExecuteTime = lastExecuteTime;
        this._lastExecuteStatus = lastExecuteStatus;
    }
}